<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Humans.AddDeleteForms" CodeFile="AddDeleteForms.aspx.cs" %>

<%@ Register TagPrefix="uc1" TagName="ProtocolDetailHeader" Src="ProtocolDetailHeader.ascx" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>AddDeleteForms</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">		
			function ConfirmDelete(){
                try
                {

                    var control = document.getElementsByName("deleteConfirmFlag");                                  
                    
                    if (control != null)
                    {
                        if ( confirm("Are you sure you want to delete this form? All answers related to this form will also be deleted.") )
                        {
		                    control[0].value = "True";
	                    }
                    }			
                }
                catch(e)
                {
                    document.write(e.message);
                }
			}
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <asp:Panel ID="headerSection" runat="server">
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc1:Header ID="header" runat="server"></cc1:Header>
                                </td>
                            </tr>
                            <tr style="display: none">
                                <td>
                                    <cc1:HumansSubNavigation ID="humansSubNavigation" runat="server" Visible="False"></cc1:HumansSubNavigation>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <cc1:HumansSubModuleNavigation ID="humansSubModNavigation" runat="server"></cc1:HumansSubModuleNavigation>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <uc1:ProtocolDetailHeader ID="protocolDetailHeader" runat="server"></uc1:ProtocolDetailHeader>
                                </td>
                            </tr>
                        </table>
                        <table width="100%">
                            <tr>
                                <td>
                                    <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <table>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0">
                        <tr>
                            <td>
                                <asp:DataGrid ID="formsGrid" runat="server" AllowCustomPaging="False" CssClass="DataGrid"
                                    AllowPaging="False" AllowSorting="False" AutoGenerateColumns="False" CellSpacing="0"
                                    Width="100%">
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                    <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                    <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                    <Columns>
                                        <asp:BoundColumn Visible="False" DataField="Id"></asp:BoundColumn>
                                        <asp:BoundColumn Visible="False" DataField="QuestionnaireVersionId"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="Name" HeaderText="Form"></asp:BoundColumn>
                                        <asp:TemplateColumn>
                                            <ItemTemplate>
                                                <asp:ImageButton Visible="True" runat="server" CommandName="OnButtonClick"></asp:ImageButton>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:BoundColumn Visible="False" DataField="Required"></asp:BoundColumn>
                                        <asp:BoundColumn Visible="False" DataField="VersionAllowsMultiple"></asp:BoundColumn>
                                        <asp:BoundColumn Visible="False" DataField="QuestionnaireCategory"></asp:BoundColumn>
                                    </Columns>
                                    <PagerStyle Visible="False"></PagerStyle>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:ImageButton ID="done" runat="server" ImageUrl="../Images/b_done.gif"></asp:ImageButton></td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
